package com.zczc.tagmanagement.dto;

import com.yishuifengxiao.common.tool.validate.domain.Create;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

/**
 * @Author:Mark
 * @Description:
 * @Date: Created on 9:17 2019-1-8
 * @Modify by:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "标签分类的dto")
@Validated
public class TagSortsDTO implements Serializable {

  private static final long serialVersionUID = -7484544256280550661L;

  @ApiModelProperty(name = "id",required = true)
  @NotBlank(message = "id不能为空",groups = {Create.class})
  private String id;

  @ApiModelProperty(name = "sortCode",value = "分类的编码",required = true)
  @NotBlank(message = "编码不能为空",groups = {Create.class})
  private String sortCode;

  @ApiModelProperty(name = "sortName",value = "分类的名称",required = true)
  @NotBlank(message = "名字不能为空",groups = {Create.class})
  private String sortName;


}
